1040 CLS : PRINT : INPUT "What do you want to save your current base as";FILE$
1050 PRINT : PRINT "Okay, saving as "FILE$
1060 OPEN "O",#1,FILE$
1070 FOR X=1 TO 100
1080 WRITE #1,T$(X),C1$(X),C2$(X),C3$(X)
1090 NEXT X
1100 CLOSE #1
1110 PRINT : PRINT FILE$;" has been saved. Press any key to continue."
1120 A$=INKEY$ : IF A$="" THEN 1120
1130 GOTO 110
1140 '**************Load File to Current Base***********
1150 CLS : PRINT : INPUT "WARNING!!! Your current Data-Base will be deleted if you use this function. Continue with function [y/n]";YN$
1160 IF YN$="y" THEN 1190
1170 IF YN$="n" THEN 110
1180 GOTO 1150
1190 CLS : PRINT : INPUT "Enter the file that you would like to load";FILE$
1200 OPEN "I",#1,FILE$
1210 FOR X=1 TO 100
1220 INPUT# 1,T$(X),C1$(X),C2$(X),C3$(X)
1230 NEXT X
1240 CLOSE #1
1250 PRINT : PRINT FILE$;" has been loaded. Press any key to continue."
1260 A$=INKEY$ : IF A$="" THEN 1260
1270 GOTO 110
1280 '**************Delete Current Base*************
1290 CLS : PRINT : INPUT "WARNING!!! You are about to delete all of your inormation. Continue [y/n]";YN$
1300 IF YN$="y" THEN 1330
1310 IF YN$="n" THEN 110
1320 GOTO 1290
1330 FOR X=1 TO 100
1340 LET T$(X)="" : LET C1$(X)="" : LET C2$(X)="" : LET C3$(X)=""
1350 NEXT X
1360 PRINT : PRINT "Your database has been deleted. Press any key to continue..."
1370 A$=INKEY$ : IF A$="" THEN 1370
1380 GOTO 110
1400 '*******************Instructions for the Mind**************
1410 CLS : PRINT : PRINT " De-Base is a very simple database program with many useful functions. It should be pretty easy to use and sometimes self-explanetory, but this section was added in case you needed help. This help file is broken up into
1420 PRINT "These sections are made from the options on the main menu. But, first you have to know that, whenever the screen pauses for and you can't figure out why, hit any key to continue."
1430 PRINT : PRINT "SECTION I. Enter Data"
1440 PRINT " In the enter data section, you are given the option to enter data for four different columns. Each column is 19 characters long. Also, you are allowed a maximum of 100 rows. After entering for one row, you are then asked if you want";
1450 PRINT "to enter another row. If you say no, you will be able to enter some more to the same database later without any problems."
1460 PRINT : PRINT "SECTION II. Sort Menu"
1470 PRINT " This option brings you to another menu wich has the following five options: Sort by title, sort by column 1, sorty by column 2, sorty by column 3 and quit to main menu. These options sort your database by the different columns by"
1480 PRINT "alphabetical order."
1490 A$=INKEY$ : IF A$="" THEN 1490
1495 CLS
1500 PRINT : PRINT "Section III. List Current Base
1510 PRINT " This function, simply lists the current database and pauses every 20 lines for easy reading. Just hit any key to continue when it pauses."
1520 PRINT : PRINT "Section IV. Print Current Base"
1530 PRINT " This section, sends your database and its column headers to the printer. Since the database is not set for printer pages, it might not print evenly on each page."
1540 PRINT : PRINT "Section V. Save Current Base"
1550 PRINT " This option saves the current database that is in memory. It will ask you for the Path and file name of the drive and file that you would like to save as.Example: B:\Test.dat. If the file already exists, it will be deleted."
1560 PRINT : PRINT "Section VI. Load a database"
1570 PRINT " This option, loads a saved De-base file. First, it will ask you if you really want to do this, because it will erase anything that you have in memory. Then, it asks you to enter the path and filename of your base."
1580 PRINT : PRINT "Section VII. Delete Current Base"
1590 PRINT " This option, clears all the memory of anything you have entered into a database."